//
//  RNOLAutoBiddingViewController.m
//  RongNiuOnline
//
//  Created by apple on 2018/4/24.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLAutoBiddingViewController.h"
#import "RNOLAutoBiddingRecordListViewController.h"
#import "RNOLBiddingSubView.h"

@interface RNOLAutoBiddingViewController ()

@end

@implementation RNOLAutoBiddingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = kBgColor;
    [self setupNavBarRightButtonWithTitle:@"记录"];
    [self setupNavBarTitleViewWithText:@"自动投标"];
    [self setup];
}

- (void)setup{
    [RNOLLoginTool setNavgationBarNeedAnimation:YES];

    UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, KWIDTH , KHIGHT)];
    scrollView.backgroundColor = kBgColor;
    [self.view addSubview: scrollView];
    
    UIView *bgView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, KWIDTH , 667)];
    RNOLBiddingSubView *bidView = [RNOLBiddingSubView FromXIB];
    [bgView addSubview: bidView];
    bidView.frame = bgView.bounds;
    
    [scrollView addSubview: bgView];
    scrollView.contentSize = CGSizeMake(KWIDTH, CGRectGetMaxY(bgView.frame));
}


#pragma mark- 自动投标记录
- (void)navRightAction:(UIButton *)button{
    [self pushPageWithClass:[RNOLAutoBiddingRecordListViewController class]];
}


@end
